function x = doit(RGB)
cc = getcc(RGB);
rgs = regionprops(cc);
numregs = size(rgs, 1);
boxes = zeros(1, numregs);
centers = zeros(2, numregs);
for i = 1:numregs
    boxes(i) = rgs(i).BoundingBox(3) / rgs(i).BoundingBox(4);
    centers(:,i) = rgs(i).Centroid;
end
absboxes = abs(boxes - 5);
x = rgs(absboxes == min(absboxes));